<?php
echo "----没有key----<br>";
$arr1 = ["one","two","three"];
foreach ($arr1 as $value)
{
    echo $value . "<br>";
}
echo "----有key----<br>";
$arr2 = ["one"=>"张三丰","two"=>"张无忌","three"=>"杨逍"];
foreach ($arr2 as $key=>$value)
{
    echo $key.":".$value . "<br>";
}